/**
 * main.ts
 */
// ----------------------------------------------------------------------------
import { createApp } from "vue";
import plugins from "@/plugins";
// ----------------------------------------------------------------------------
// Apps
import APP_00 from "./mainApp.vue";
// import APP_01 from '@/layout/index.vue'
// ----------------------------------------------------------------------------
// demos
// import demo_i18n from '@/demos/demo_i18n.vue'
// import demo_dark from '@/demos/demo_dark.vue'
// import demo_layout_el from '@/examples-element-plus/layout.vue'
// import demo_navigation_top from '@/demos/navigations/demo_navigation_top.vue'
// import demo_zyx from '@/demos/demo_zyx.vue'
// ----------------------------------------------------------------------------
// demos - 组件
// import demo_component_01_01 from '@/demos/components/demo_component_01_01.vue'
// import demo_component_02_01 from '@/demos/components/demo_component_02_01.vue'

// import MyComponent from '@/demos/components/child02/MyComponent.vue'
// ----------------------------------------------------------------------------
// demos - 导航.固钉
// import demo_affix from '@/demos/demo_affix.vue'
// import demo_backtop from '@/demos/demo_backtop.vue'
// import demo_breadcrumb from '@/demos/demo_breadcrumb.vue'
// import demo_container from '@/demos/demo_container.vue'
// import demo_dropdown from '@/demos/demo_dropdown.vue'

// demos - 导航.菜单
// import demo_menu_01 from '@/demos/menus/demo_menu_01.vue'
// import demo_menu_02 from '@/demos/menus/demo_menu_02.vue'
// import demo_menu_03 from '@/demos/menus/demo_menu_03.vue'
// ----------------------------------------------------------------------------
const mainApp = APP_00;
// ----------------------------------------------------------------------------
const app = createApp(mainApp).use(plugins).mount("#app");
// ----------------------------------------------------------------------------
// 测试
//
// import { GlobalConfig, StoreID, TestID } from "@/config"

// localStorage.clear()
// localStorage.removeItem(StoreID.AUTH_STORE);
// console.log(`${StoreID.AUTH_STORE}  = ${localStorage.getItem(StoreID.AUTH_STORE)}`)

// localStorage.removeItem(StoreID.KEEP_ALIVE_STORE);
// console.log(`${StoreID.KEEP_ALIVE_STORE}  = ${localStorage.getItem(StoreID.KEEP_ALIVE_STORE)}`)

// localStorage.removeItem(StoreID.USER_STORE);
// console.log(`${StoreID.USER_STORE}  = ${localStorage.getItem(StoreID.USER_STORE)}`)

// localStorage.removeItem(StoreID.TABS_STORE);
// console.log(`${StoreID.TABS_STORE}  = ${localStorage.getItem(StoreID.TABS_STORE)}`)

// api
// import { useAxiosApi } from "@/api"
// const axiosApi = useAxiosApi()
// console.log(axiosApi.auth_menu_list_local())

// DynamicRouter
// import DynamicRouter from "@/router/modules/dynamic-router";
// let menuList0 = DynamicRouter;
// let menuList1 = JSON.stringify(menuList0);
// let menuList2 = JSON.parse(menuList1);
// console.log(menuList0)
// console.log(menuList1)
// console.log(utils.getFlatMenuList(DynamicRouter as MenuOptions[]))

// useAuthStore
// import { useAuthStore } from '@/store'
// const authStore = useAuthStore();
// authStore.buildMenuList();
// console.log(authStore.menuList);
// console.log(authStore.FlatMenuList);

// let x = 12345;
// console.log(`x.toFixed = ${x.toFixed(1)}`);
// console.log(`x.toString = ${x.toString()}`);
// console.log(`x.toPrecision = ${x.toPrecision(6)}`);
let x = 0;
